﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Templates_Galleries_Default : Acms.AcmsControls.TemplatePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }

    protected void dsGalleries_SelectData(object sender, Acms.DataControls.SelectEventArgs<Acms.Bll.Post> e)
    {
        if (AcmsContext.CurrentPost != null)
        {
            e.SetData(AcmsContext.CurrentPost.Children);
        }
        else
        {
            e.SetData(Acms.Bll.DummyPost.CreateDummyList(10));
        }
    }
}
